<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/js/contests.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/js/utilities.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jquery/jquery.pagination/jquery.pagination.js"></script>
<link rel="stylesheet" type="text/css" href="|£|$url|\£|/wp-content/plugins/video-wizard/libs/Smarty/templates/css/contests_widget.css"/>
<link rel="stylesheet" type="text/css" href="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jquery/jquery.pagination/pagination.css"/>
<div id="active_contests">
    <div id="contestContainer">
    |£|if $loggedin == "true"|\£|
        |£|if $noContests != "false"|\£|
            |£|foreach key=key from=$activeContests_wid item=item|\£|
                |£|if $key == 0|\£|
                    |£|$display="block"|\£|
                |£|else|\£|
                    |£|$display="none"|\£|
                |£|/if|\£|
                |£|$count = $activeContests_wid|@count|\£|
                <div style="display:|£|$display|\£|;" id="contestElementCont-|£|$key|\£|" class="contestElementCont">
                    <form>
                        <div id="contestElement-|£|$key|\£|" class="contestElement">
                            <div class="floatl"><b class="contestTitle">|£|$item.title|\£|</b></div>
                            <div class="floatl pagenav">
                                <span id="vidwiz_prev_pagenav-|£|$key|\£|" onclick="prevPagination_contest('|£|$key|\£|','|£|$count|\£|');" style="display:none;">PREV</span>
                                |£|if $count == 1|\£|
                                <span id="vidwiz_next_pagenav-|£|$key|\£|" style="display:none;">NEXT</span>
                                |£|else|\£|
                                <span id="vidwiz_next_pagenav-|£|$key|\£|" onclick="nextPagination_contest('|£|$key|\£|','|£|$count|\£|')">NEXT</span>
                                |£|/if|\£|
                            </div>
                            <div class="clr"></div>
                            <div>
                                <table>
                                    <tr>
                                        <td>Data inizio</td>
                                        <td>Data Fine</td>
                                    </tr>
                                    <tr>
                                        <td>|£|$item.startDate|\£|</td>
                                        <td>|£|$item.stopDate|\£|</td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <input  onclick="contestSubscription('contestElementCont-|£|$key|\£|','|£|$item.id|\£|');" type="button" value="Iscriviti..." />
                    </form>
                </div>
            |£|/foreach|\£|
        |£|else|\£|
            <div align="center" >Non ci sono concorsi ai quali puoi iscriverti</div>
        |£|/if|\£|
    |£|else|\£|
        <div align="center">Per partecipare ai concorsi, <a href=" http://localhost/wordpress/registrazione"> Registrati</a> oppure <a href="http://localhost/wordpress/wp-login.php">Effettua il login</a></div>
    |£|/if|\£|
    
    </div>
</div>